package com.gaoding.shared.dict.dto.request;

import com.gaoding.commons.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author mobai
 * @since 2021/4/7 19:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("服务新增参数实体")
public class CreateDictServiceDTO extends BaseDto {


    /**
     * 服务编码
     */
    @ApiModelProperty("服务编码")
    @NotEmpty(message = "服务编码不得为空")
    private String serviceCode;


    /**
     * 服务名称说明
     */
    @ApiModelProperty("服务名称")
    @NotEmpty(message = "服务名称不得为空")
    private String serviceName;
}
